package org.df.ulab.bot.plugins.pmi.commons;

import org.df.ulab.bot.api.pmi.entity.Activity;
import org.df.ulab.bot.api.pmi.entity.Issue;
import org.df.ulab.bot.api.pmi.entity.IssueTimeEntry;
import org.df.ulab.bot.api.pmi.entity.Member;

/**
 * @author Daniel Filgueiras
 * @since 19/06/2011
 */
public class DefaultTimeEntry implements IssueTimeEntry {

	private Issue issue;
	private Member member;
	private double workedTime;
	private CharSequence comment;
	private Activity activity;
	
	public DefaultTimeEntry(Issue issue, Member member) {
		this.issue = issue;
		this.member = member;
	}

	@Override
	public Issue getIssue() {
		return issue;
	}

	@Override
	public Member getMember() {
		return member;
	}
	public void setMember(Member member) {
		this.member = member;
	}
	
	@Override
	public double getWorkedTime() {
		return workedTime;
	}
	public void setWorkedTime(double workedTime) {
		this.workedTime = workedTime;
	}

	@Override
	public CharSequence getComment() {
		return comment;
	}
	public void setComment(CharSequence comment) {
		this.comment = comment;
	}

	@Override
	public Activity getActivity() {
		return activity;
	}
	public void setActivity(Activity activity) {
		this.activity = activity;
	}

}
